﻿using Enums;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common
{
    public class ResultEntity
    {
        /// <summary>
        /// 状态
        /// </summary>
        public EnumResultState ResultState { get; set; }
        /// <summary>
        /// 新增时返回自增列Id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        public string Msg { get; set; }
        /// <summary>
        /// 错误信息
        /// </summary>
        public string ErrorMsg { get; set; }
        /// <summary>
        /// 输出内容(Ajax时使用)
        /// </summary>
        public object Output { get; set; }
        /// <summary>
        /// 跳转方式
        /// </summary>
        public EnumPageTarget PageTarget { get; set; }
        /// <summary>
        /// 跳转地址
        /// </summary>
        public string JumpUrl { get; set; }

        public string MsgResult { get; set; }

        /// <summary>
        /// 文件ID
        /// </summary>
        public string FileId { get; set; }
        /// <summary>
        /// 上传图片ID
        /// </summary>
        public string UploadImgId { get; set; }

    }

    /// <summary>
    /// 事务存储过程返回结果
    /// </summary>
    public class ResultProcedureEntity
    {
        public EnumResultState ResultState { get; set; }

        public string ReturnMsg { get; set; }

        public DataSet Datas = new DataSet();
    }
}
